<div class="top1">
    <div class="top1right">
        <?php echo $this->linkTo($this->trans('set home page'), '#','id=homepage') ?><span>&nbsp;|&nbsp;</span>
        <?php echo $this->linkTo($this->trans('favorite'), '#','id=favorite') ?><span>&nbsp;|&nbsp;</span>
        <?php echo $this->linkTo($this->trans('help'), '#') ?>
    </div>
    <div>
        <?php if ($this->authInfo()->isLogined()) {
            echo $this->trans("hello,%s!",$this->authInfo()->getUser('name'));
            echo '[&nbsp;' . $this->linkTo($this->trans('logout'),'user/logout') . '&nbsp;]';
        } else {
            echo $this->trans('welcome,%s!',$this->sysInfo()->getTitle());
            echo '[&nbsp;' . $this->linkTo($this->trans('please login'),'user/login') . '&nbsp;]';
            echo '[&nbsp;' . $this->linkTo($this->trans('free register'),'user/register') .'&nbsp;]';
        }
        ?>
    </div>
</div>